package com.gxar.navigation.server.base.model.route.vo;

import com.alibaba.fastjson2.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.gxar.navigation.server.base.model.node.vo.LocationVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author linsy
 * @version 1.0
 * @created 2023/9/18 09:35
 */
@Data
@ApiModel("路段方案信息")
public class PathInfo {

    @ApiModelProperty("路段指示信息")
    @JSONField(name = "instruction")
    @JsonProperty("instruction")
    private String instruction;

    @ApiModelProperty("路段名称")
    @JSONField(name = "name")
    @JsonProperty("name")
    private String name;

    @ApiModelProperty("路段距离")
    @JSONField(name = "distance")
    @JsonProperty("distance")
    private Double distance;

    @ApiModelProperty("路段方向")
    @JSONField(name = "orientation")
    @JsonProperty("orientation")
    private String orientation;

    @ApiModelProperty("路段起点坐标")
    @JSONField(name = "origin")
    @JsonProperty("origin")
    private LocationVO origin;

    @ApiModelProperty("路段终点经坐标")
    @JSONField(name = "destination")
    @JsonProperty("destination")
    private LocationVO destination;

}
